-- GENERATED SPELL FOR [Deathforge Imp] --


function spell0_20887(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(36227,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20887', 2000, 1)
end

function Sorts_20887(pUnit, Event)
local choix_sorts_20887 = math.random(0, 0)
if choix_sorts_20887 == 0 then
pUnit:RegisterEvent('spell0_20887', 1, 1)
end
end

function mob20887_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20887', math.random(1500, 3000), 1)
end

function mob20887_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20887_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20887_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20887, 1, 'mob20887_Action')
RegisterUnitEvent(20887, 2, 'mob20887_Leave')
RegisterUnitEvent(20887, 3, 'mob20887_Kill')
RegisterUnitEvent(20887, 4, 'mob20887_Die')
